import request from '@/utils/request'

// 查询消防设施列表
export function listXiaofang(query) {
  return request({
    url: '/biz/xiaofang/list',
    method: 'get',
    params: query
  })
}

// 查询消防设施详细
export function getXiaofang(field1) {
  return request({
    url: '/biz/xiaofang/' + field1,
    method: 'get'
  })
}

// 新增消防设施
export function addXiaofang(data) {
  return request({
    url: '/biz/xiaofang',
    method: 'post',
    data: data
  })
}

// 修改消防设施
export function updateXiaofang(data) {
  return request({
    url: '/biz/xiaofang',
    method: 'put',
    data: data
  })
}

// 删除消防设施
export function delXiaofang(field1) {
  return request({
    url: '/biz/xiaofang/' + field1,
    method: 'delete'
  })
}

// 导出消防设施
export function exportXiaofang(query) {
  return request({
    url: '/biz/xiaofang/export',
    method: 'get',
    params: query
  })
}
